from google.appengine.api import users
from gaeo.controller import BaseController

class WelcomeController(BaseController):
    def index(self):
        if users.get_current_user():
            self.redirect('/issue')

    def login(self):
        ''' For test '''
        self.redirect(users.create_login_url('/'))

    def logout(self):
        ''' For test '''
        self.redirect(users.create_logout_url('/'))
